package com.softwin.controller;

import com.softwin.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value = "/user")
public class UserController {
    @Autowired
    private UserService userService;
    @GetMapping("/test01")
    public String test01(Model model){
        Integer count = userService.selectCount();
        model.addAttribute("count",count);
        return "/index.jsp";
    }
}
